import request from '@/utils/request'

// 查询报表配置列表
export function listReportConfig(query) {
  return request({
    url: '/reportConfig/list',
    method: 'get',
    params: query
  })
}

// 查询报表配置详细
export function getReportConfig(id) {
  return request({
    url: '/reportConfig/' + id,
    method: 'get'
  })
}

// 新增报表配置
export function addReportConfig(data) {
  return request({
    url: '/reportConfig',
    method: 'post',
    data: data
  })
}

// 修改报表配置
export function updateReportConfig(data) {
  return request({
    url: '/reportConfig',
    method: 'put',
    data: data
  })
}

// 删除报表配置
export function delReportConfig(id) {
  return request({
    url: '/reportConfig/' + id,
    method: 'delete'
  })
}

// 导出报表配置
export function exportReportConfig(query) {
  return request({
    url: '/reportConfig/export',
    method: 'get',
    params: query
  })
}

export function treeselect(query) {
  return request({
    url: '/reportConfig/treeselect',
    method: 'get',
    params: query
  })
}
